package com.java.base.constructor;

public class Son extends Father {

    static {
        System.out.println("Son static code");
    }

    {
        System.out.println("Son code");
    }

    public Son() {
        super("1");
        System.out.println("Son constructor1");
    }

    public Son(String a) {
        super(a);
        System.out.println("Son constructor2");
    }

    @Override
    public void m() {
        System.out.println("Son Method");
    }

    public static void staticMethod() {
        System.out.println("Son staticMethod");
    }
}
